import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index'
import NavPage from '@/components/navPage'
import CrowdFunding from '@/components/crowdFunding'
import Read from '@/components/read'
import Login from '@/components/login'
import Register from '@/components/register'
import LosePassword from '@/components/losePassword'


Vue.use(require('vue-wechat-title'))//修改title值
Vue.use(Router)
export default new Router({
  history: false,
  hashbang: true,
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      meta: {
        title: 'reader'
      }
    },
    {
      path: '/NavPage',
      name: 'NavPage',
      component: NavPage,
      meta:{
        title:"设置"
      }
    },{
      path:'/CrowdFunding',
      name: 'CrowdFunding',
      component: CrowdFunding,
      meta: {
        title: "众筹"
      }
    }, {
      path: '/Read',
      component: Read,
      meta: {
        title: "reader"
      }
    },{
      path: '/Login',
      component: Login,
      meta: {
        title: "登录"
      }
    },{
      path:'/Register',
      component: Register,
      meta: {
        title: "注册"
      }
    },{
      path:'/LosePassword',
      component: LosePassword,
      meta: {
        title: "重置密码"
      }
    }

  ]
})
